package com.service;

import com.bean.Building;
import com.dao.impl.BuildingDAOImpl;

import java.sql.SQLException;
import java.util.List;

public interface BuildingService {

     List<Building> selectAll() throws SQLException ;

     boolean deleteById(Integer id) throws SQLException ;

     boolean removeAll(String[] idsArr) throws SQLException ;

     boolean insert(Building b) throws SQLException ;

     boolean update(Building b) throws SQLException ;


     Integer count() throws SQLException ;

     Integer countSearch(String search) throws SQLException ;


     List<Building> selectAllPagination(Integer offset, Integer limit) throws SQLException ;

     List<Building> selectAllPaginationSearch(Integer offset, Integer limit, String search) throws SQLException;

}
